package netty.tcp.websocket;

import io.netty.buffer.ByteBuf;

public class MessageContainer {

    private final long publishTime;

    private final long creationTime;

    private final int userId;

    private final String channel;

    private final ByteBuf jsonByte;

    public MessageContainer(long publishTime, long creationTime, int userId, String channel, ByteBuf jsonByte) {
        this.publishTime = publishTime;
        this.creationTime = creationTime;
        this.userId = userId;
        this.channel = channel;
        this.jsonByte = jsonByte;
    }

    public long getPublishTime() {
        return publishTime;
    }

    public long getCreationTime() {
        return creationTime;
    }

    public int getUserId() {
        return userId;
    }

    public String getChannel() {
        return channel;
    }

    public ByteBuf getJsonByte() {
        return jsonByte;
    }
}
